package sk.kainitram.fuel.model;

import java.util.Date;

import com.kainitram.morm.*;

public class Fuel extends ModelBase {
	
	private Date refuelDate;
	private double jCena;
	private double jMnozstvo;
	private Car car;
	private String fuelStationName;
	private double distance;
	private double spotreba;
	
	public Fuel(Session session) {
		super(session);
	}

	/**
	 * @return the refuelDate
	 */
	public Date getRefuelDate() {
		return refuelDate;
	}

	/**
	 * @param refuelDate the refuelDate to set
	 */
	public void setRefuelDate(Date refuelDate) {
		this.refuelDate = refuelDate;
	}

	/**
	 * @return the jCena
	 */
	public double getjCena() {
		return jCena;
	}

	/**
	 * @param jCena the jCena to set
	 */
	public void setjCena(double jCena) {
		this.jCena = jCena;
	}

	/**
	 * @return the jMnozstvo
	 */
	public double getMnozstvo() {
		return jMnozstvo;
	}

	/**
	 * @param jMnozstvo the jMnozstvo to set
	 */
	public void setMnozstvo(double jMnozstvo) {
		this.jMnozstvo = jMnozstvo;
	}

	/**
	 * @return the car
	 */
	public Car getCar() {
		return car;
	}

	/**
	 * @param car the car to set
	 */
	public void setCar(Car car) {
		this.car = car;
	}

	/**
	 * @return the fuelStationName
	 */
	public String getFuelStationName() {
		return fuelStationName;
	}

	/**
	 * @param fuelStationName the fuelStationName to set
	 */
	public void setFuelStationName(String fuelStationName) {
		this.fuelStationName = fuelStationName;
	}

	/**
	 * @return the distance
	 */
	public double getDistance() {
		return distance;
	}

	/**
	 * @param distance the distance to set
	 */
	public void setDistance(double distance) {
		this.distance = distance;
	}

	/**
	 * @return the spotreba
	 */
	public double getSpotreba() {
		return spotreba;
	}

	/**
	 * @param spotreba the spotreba to set
	 */
	public void setSpotreba(double spotreba) {
		this.spotreba = spotreba;
	}
	
	
	public double getCCena()
	{
		return getjCena()*getMnozstvo();
	}
}
